import { useEffect, useState } from 'react';
import { useDispatch, useSelector, ArticleModelState, Loading, Link } from 'umi';

import styles from './index.less'
function Articletitle() {

    // 此组件暂时没用
    const { article } = useSelector((state: { article: ArticleModelState, loading: Loading }) => {
        return {
            article: state.article,
        }
    });

    const dispatch = useDispatch();

    // hooks的生命周期
    useEffect(() => {
        dispatch({
            type: 'article/getArticleNavList',
        })
    }, []);

    return (
        <div className={styles.articletitle}>
            <p>分类文章</p>
            <p>共搜索到{ }篇</p>
        </div>
    )
}

export default Articletitle